package com.hxzy.controller.vue.employee.resp;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/9/5 11:20
 * @Version 1.0
 */
@ExcelIgnoreUnannotated
@Getter
@Setter
@ToString
//内容的行高
@ContentRowHeight(90)
//标题高
@HeadRowHeight(20)
public class EmployeeExcelResp {

    @ExcelProperty(value = "编号",index = 0)
    private Long id;

    /**
     * 登录账户
     */
    @ColumnWidth(15)
    @ExcelProperty(value = "登录账户",index = 1)
    private String loginName;


    /**
     * 性别(0 女 1 男)
     */
    @ExcelProperty(value = "性别",index = 2)
    private String gender;

    /**
     * 头像
     */
    @ColumnWidth(30)
    @ExcelProperty(value = "头像",index =3)
    private String avatar;

    /**
     * 状态（1停用，0正常）
     */
    @ExcelProperty(value = "状态",index =4)
    private String status;

    /**
     * 1超级管理员，0普能后台用户
     */
    @ExcelProperty(value = "是否超级管理员",index =5)
    private String root;

    /**
     * 创建时间
     */
    @ColumnWidth(25)
    @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "创建时间",index =6)
    private Date createTime;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人",index =7)
    private String createBy;
}
